package com.infinit.easyreader.ui;

import com.infinit.easyreader.fragment.MyFilePickerFragment;
import com.nononsenseapps.filepicker.AbstractFilePickerActivity;
import com.nononsenseapps.filepicker.AbstractFilePickerFragment;

import java.io.File;

/**
 * 类： MyFilePickerActivity [V 1.0.0]
 * 包含类 : com.infinit.easyreader.UI.MyFilePickerActivity
 * 作用：重写的FilePicker
 * Created by rzy on 2016/2/1.
 */
public class MyFilePickerActivity extends AbstractFilePickerActivity<File> {
    public MyFilePickerActivity() {
        super();
    }

    @Override
    protected AbstractFilePickerFragment<File> getFragment(String startPath, int mode,
                                                           boolean allowMultiple, boolean allowCreateDir) {
        MyFilePickerFragment filePickerFragment = new MyFilePickerFragment();
        filePickerFragment.setArgs(startPath, mode, allowMultiple, allowCreateDir);
        return filePickerFragment;
    }
}


